{% extends 'myadmin/public/base.html' %}

{% block title %}
<title>订单详情</title>
{% endblock %}

{% block con %}
<div class="row-content am-cf">
    <div class="row">
        <div class="am-u-sm-12 am-u-md-12 am-u-lg-12">
            <div class="widget am-cf">
                <div class="widget-head am-cf">
                    <div class="widget-title  am-cf">订单详情</div>


                </div>
                <div class="widget-body  am-fr">

                    <div class="am-u-sm-12 am-u-md-6 am-u-lg-6">
                        <div class="am-form-group">
                            <div class="am-btn-toolbar">
                                <div class="am-btn-group am-btn-group-xs" style="color: white">
                                    <button type="button" class="am-btn am-btn-default am-btn-success"><a href="{% url "myadmin_goods_add" %}"><span class="am-icon-plus"></span> 新增</a></button>
                                    <button type="button" class="am-btn am-btn-default am-btn-secondary"><span class="am-icon-save"></span> 保存</button>
                                    <button type="button" class="am-btn am-btn-default am-btn-warning"><span class="am-icon-archive"></span> 审核</button>
                                    <button type="button" class="am-btn am-btn-default am-btn-danger"><span class="am-icon-trash-o"></span> 删除</button>
                                </div>
                            </div>
                        </div>
                    </div>

                    <div class="am-u-sm-12">
                        <table width="100%" class="am-table am-table-compact am-table-striped tpl-table-black ">
                            <thead>
                                <tr>
                                    <th>收货ID</th>
                                    <th>收货地址</th>
                                    <th>收货人</th>
                                    <th>收货人电话</th>
                                    <th>默认收货地址</th>
                                </tr>
                            </thead>
                            <tbody>
                              <tr>
                                <td class="am-text-middle">{{ orderrecv.aid.id }}</td>
                                <td class="am-text-middle">{{ orderrecv.aid.address }}</td>
                                <td class="am-text-middle">{{ orderrecv.aid.addressname }}</td>
                                <td class="am-text-middle">{{ orderrecv.aid.addressphone }}</td>
                                <td class="am-text-middle">{{ orderrecv.aid.status }}</td>
                              </tr>
                            </tbody>
                        </table>
                        
                    <div class="am-u-sm-12">
                        <table width="100%" class="am-table am-table-compact am-table-striped tpl-table-black ">
                            <thead>
                                <tr>
                                    <th>订单号</th>
                                    <th>商品图片</th>
                                    <th>商品ID</th>
                                    <th>商品数量</th>
                                    <th>商品价格</th>
                         
                                </tr>
                            </thead>
                            <tbody>
                            {% for v in orderinfo %}
                              <tr>
                                <td class="am-text-middle">{{ v.orderid.id }}</td>
                                <td class="am-text-middle">{{ v.goodsid.title }}</td>
                                <td class="am-text-middle"><img src="{{ v.goodsid.pic }}" height="100px"></td>
                                <td class="am-text-middle">{{ v.num }}</td>
                                <td class="am-text-middle">{{ v.price }}</td> 
                              </tr>
                            {% endfor %}
                             
                            </tbody>
                        </table>
                    </div>
                    <div class="am-u-lg-12 am-cf">

                        <div class="am-fr">
                            <ul class="am-pagination tpl-pagination">

                            </ul>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

{% endblock %}

